/**
 * 
 */
package com.oet.persistence.operator;

import javax.persistence.EntityManager;

import com.oet.persistence.entity.CourseSeries;
import com.persistence.template.EntityOperator;


/**
 * @author y140zhan
 *
 */
public class CourseSeriesEntity extends EntityOperator<CourseSeries> {
	
	public CourseSeriesEntity(EntityManager em)
	{
		setEntityManager(em);
		validate();
		getInstance();
	}
	
	public CourseSeriesEntity(EntityManager em, Object id)
	{
		setEntityManager(em);
		validate();
		getInstance();
		loadInstance(id);
	}
	
	public CourseSeries loadEntity(Object id)
	{
		return loadInstance(id);
	}
	
	public String remove()
	{
		CourseSeries instanceTemp = getInstance();
		getEntityManager().refresh(instanceTemp);

		return super.remove();
	}

}
